<% if @tool.set_by_current_user? %>
  <div class='small'>
    <%= link_to_remote '新增我的设置',
          :update => :new_or_edit_my_setting,
          :url => new_in_show_new_tools_number_location_url,
          :method => :get,
          :html => {
            :class => :new
          } %>
    <%= link_to "返回我的大拼盘享用它", user_url(current_user), :class =>:h %>
  </div>  
  <% @settings.each do |setting| %>
  <div id='setting_<%= setting.id %>' class='show'>    
    <dl>
      <dt>大拼盘：</dt>
      <dd>
        <%= setting.column_name %>
      </dd>
    </dl>
    <div class='center'>
      <%= link_to_remote '编辑我的设置',
          :update => :new_or_edit_my_setting,
          :url => edit_in_show_tools_number_location_url(setting),
          :method => :get,
          :html => {
            :class => :edit
          } %>
      <%= link_to_remote '删除该设置',
          :confirm => '确认要删除吗？',
          :url => destroy_in_show_tools_number_location_url(setting),
          :method => :delete,
          :loading => "Effect.Fade('setting_#{setting.id}')",
          :html => {
            :class => :delete
          } %>
    </div>
  </div>
  <% end %>
<% else %>
  <div id='new_my_setting'>
  <% if has_logined_by_user? %>
    <%= link_to_remote image_tag("tools/enjoy.jpg"),
          :update => :new_or_edit_my_setting,
          :url => new_in_show_new_tools_number_location_url,
          :method => :get,
          :html => {
            :title => '简单的设置，即可享用此大餐',
            :id => 'new_setting'      
          } %>
  <% else %>
    <%= link_to '添加到我的拼盘才可享用', new_session_url, :class => 'enjoying', :title => '您尚未登录' %>
  <% end %>
  </div>
<% end %>